package java_design_model.com.Memento;

import com.sun.xml.internal.ws.api.model.wsdl.WSDLOutput;

import java.util.Arrays;
/*历史记录，1，2，返回1，重新计数，2*/
public class m {
    public static void main(String[] args) {
        O o=new O(new IS());
        o.addstate();
        o.addstate();
        o.backstate();
        o.addstate();
        o.is.getiNodeArray().forEach(m->{
            System.out.print(m.getState());
        });
//        System.out.println(o.is.getiNodeArray().stream());
    }
}
